package com.zzy.rpc;

import java.io.Serializable;

public class Invocation implements Serializable {
	
	private static final long serialVersionUID = 1L;

	private Class interfaces;
	private Class[] parameterTypes;
	private String methodName;
	private Object[] params;
	private Object result;

	public Invocation(Class interfaces, Class[] parameterTypes, String methodName, Object[] params) {
		this.interfaces = interfaces;
		this.parameterTypes = parameterTypes;
		this.methodName = methodName;
		this.params = params;
	}

	public Class[] getParameterTypes() {
		return parameterTypes;
	}

	public void setParameterTypes(Class[] parameterTypes) {
		parameterTypes = parameterTypes;
	}
	
	public String getMethodName() {
		return methodName;
	}
	
	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public Object[] getParams() {
		return params;
	}

	public void setParams(Object[] params) {
		this.params = params;
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

	public void setInterfaces(Class interfaces) {
		this.interfaces = interfaces;
	}

	public Class getInterfaces() {
		return interfaces;
	}

}
